type songsStateType = {
  all: {
    name: string
    resourceCount: number
    imgId: number
    imgUrl: unknown
    type: number
    category: number
    resourceType: number
    hot: boolean
    activity: boolean
  }
  sub: {
    name: string
    resourceCount: number
    imgId: number
    imgUrl: unknown
    type: number
    category: number
    resourceType: number
    hot: boolean
    activity: boolean
  }[]
  categories: {
    '0': string
    '1': string
    '2': string
    '3': string
    '4': string
  }
}

type PlaylistItemType = {
  name: string
  id: number
  coverImgUrl: string
  playCount: number
  picUrl?: string
  creator: {
    nickname: string
  }
}

type currentCategoryType = {
  playlists: PlaylistItemType[]
  total: number
  more: boolean
  cat: string
}

export type{songsStateType, PlaylistItemType, currentCategoryType}